package com.zd.common;

import android.location.Location;

public class ThreadEX extends Thread {
	
	protected boolean isRun;
	
	private Location location;
	
	private Object locationLock = new Object();
	
	/**
	 * ֹͣ
	 */
	public void stop2() {
		isRun = false;
	}

	@Override
	public synchronized void start() {
		isRun = true;
		super.start();
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
		synchronized (locationLock) {
			this.location = location;
		}
	}
	
}
